package kk

class User {
	Long id
	String login
	String password
	
	String toString() {
		"$login"
	}
	
	static hasMany = [entries: Entry]
    static constraints = {
		login(unique:true)
		password(blank:false, password:true)
    }
}
